import request from '@/utils/request.js'

// 获取用户信息
export const getUser = () => {
  return request({
    method: 'GET',
    url: '/user'
  })
}

// 修改用户信息
export const editUser = data => {
  return request({
    method: 'PUT',
    url: '/user'
  })
}

// 获取用户优惠券
export const getCoupon = params => {
  return request({
    method: 'GET',
    url: '/discounts',
    params
  })
}
